<template>
  <div class="box">
    <h2>Child4 component</h2>
    <button @click="PubSub.publish('updateMsg','狗蛋')">更新兄弟组件数据</button>
  </div>
</template>

<script lang="ts" name="Child4" setup>
 import PubSub from "pubsub-js";
</script>

<style scoped>

</style>
